Skip to content

Instantly share code, notes, and snippets.

@sixtenbe
sixtenbe / analytic_wfm.py
Last active November 20, 2026 12:22 — forked from endolith/peakdet.m
Peak detection in Python
#!/usr/bin/python2
# Copyright (C) 2016 Sixten Bergman
# License WTFPL
#
# This program is free software. It comes without any warranty, to the extent
# permitted by applicable law.
# You can redistribute it and/or modify it under the terms of the Do What The
# Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="Scripts/jquery-1.9.1.min.js"></script>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<script src="Scripts/isRockFx.js"></script>
<script>
$(function () {
@4t4nner
4t4nner / gist:77c50be18f586c8ab49f51f7b1b78f33
Created November 20, 2026 11:45
Run apps bypass amneziaVPN on RHEL
Everything is provided "as is." It works for me on Fedora 42, but it might not work on your computer.
## 1. Create group
```
sudo groupadd novpn
sudo usermod -aG novpn $USER
```
## 2. Create a routing script
It finds the router and interface (Wi-Fi or Ethernet) itself.
It sends packets of processes from the novpn group through the router, and changes the sender address to the address of this interface.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@Shulian4K
Shulian4K / MY-SETUP.md
Last active November 20, 2026 12:02
My CleanYourTV setup — Hisense 4K Google TV: debloat, custom launcher patches (header, tiles, circular navigation) and rotating + online backgrounds

My CleanYourTV setup — Hisense 4K Google TV, fully customized

A detailed log of everything I changed on top of CleanYourTV: the debloat, the launcher patches (all done in the fork's code), and how the home screen ended up.

Hardware: Hisense SmartTV 4K (songshan, Android 11 / Google TV), wired Ethernet. Workstation: an Intel MacBook Pro (macOS user account, no admin rights) — Amazon Corretto 17 + Android SDK installed entirely in user space.


@k16shikano
k16shikano / SKILL.md
Last active November 20, 2026 12:00
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、翻訳調の比喩と擬人化の禁止(「運ぶ」「効く」「開かれた問い」など)、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。
license Unlicense(https://gist.github.com/k16shikano/67625f2a7d96e3bbdfae8d571a936063)

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

@PanosGreg
PanosGreg / Disable-WingetPinning.ps1
Last active November 20, 2026 11:57
Disable WinGet certificate pinning for the MS Store source
function Disable-WingetPinning {
<#
.SYNOPSIS
It disables the Certificate Pinning option in WinGet for the MS Store source.
This is usually required when there is a firewall on your network that inspects SSL traffic,
where you might get an error 0x8a15005e back from WinGet, as it cannot access the msstore endpoint URL.
.DESCRIPTION
If you are behind a firewall that inspects SSL traffic,
that means it decrypts & re-encrypts traffic on the fly in order to inspect it.
@fnordomat
fnordomat / CDWiFi (České dráhy) WiFi Internet Access
Last active November 20, 2026 11:53
Automatic negotiation of a captive portal: connect to icomera wifi in CD trains without having to jump through hoops.
# I believe this is the necessary and sufficient step to get internet access on board the Czech long distance trains (e.g. EuroCity which runs from Prague to Kiel)
curl -vLA '' 'http://cdwifi.cz/portal/api/vehicle/gateway/user/authenticate'
# It says "500 internal server error" but that doesn't keep it from working.
# check with this request, answer should contain "authenticated":1
curl -vLA '' 'http://cdwifi.cz/portal/api/vehicle/gateway/user'
# Also nice: GPS data (but seems outdated)
curl -vLA '' 'http://cdwifi.cz/portal/internal/api/x6/position'